﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmartDesktop
{
    public partial class InsuranceOrder :UserControl
    {
        public InsuranceOrder()
        {
            InitializeComponent();
            this.Name = "Insurance Order";
            BindDay(); 
            BindYear(); 
            BindMonth(); 
            lblMessage.Text = "";
        }

        private void ImgbtnContinute_Click(object sender, EventArgs e)
        {

        }
        private void rdMemberId_Click(object sender, EventArgs e)
        {
            rdPriorAuth.Checked = false; rdMemberId.Checked = true;
        }

        private void rdPriorAuth_Click(object sender, EventArgs e)
        {
            rdPriorAuth.Checked = true; rdMemberId.Checked = false;
        }
       
        private void BindDay()
        {
            drpDay.Items.Clear();
            for (int count = 1; count <= 31; count++)
            {
                string lstItem = "";
                if (count < 10)
                {
                    lstItem = "0" + Convert.ToString(count);
                }
                else
                {
                    lstItem = Convert.ToString(count);
                }
                drpDay.Items.Add(lstItem);
            }
            drpDay.Items.Insert(0, "Day");
            drpDay.SelectedIndex = 0;
        }

        private void BindYear()
        {
            drpYear.Items.Clear();
            string lstItem = "";
            for (int count = System.DateTime.Now.Year; count > 1900; count--)
            {
                lstItem = Convert.ToString(count);
                drpYear.Items.Add(lstItem);

            }
            drpYear.Items.Insert(0, "Year");
            drpYear.SelectedIndex = 0;
        }
        private void BindMonth()
        {
            drpMonth.Items.Clear();
            drpMonth.Items.AddRange(new object[] { "-Month-", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" });
            drpMonth.SelectedIndex = 0;
        }
    }
}
